import request from './index'

export const getPostList = (title, pageNo, pageSize) => {
  return request.get('/community/post/list', {
    params: {
      title,
      pageNo,
      pageSize,
    },
  })
}

export const deletePostAPI = (id) => {
  return request.delete(`/community/post/adminDelete/${id}`)
}

export const getCommentList = (content, pageNo, pageSize) => {
  return request.get('/community/comment/list', {
    params: {
      content,
      pageNo,
      pageSize,
    },
  })
}

export const deleteCommentAPI = (id) => {
  return request.delete(`/community/comment/adminDelete/${id}`)
}
